<?php
if (!defined('URL')) include('../includes/definer.php');
if (!defined('BOOTSTRAP')) include(INC.'admin/php/bootstrap.php');
//$categorias = Doctrine::getTable('categoria')->findAll(Doctrine::HYDRATE_ARRAY);
$categorias = Doctrine_Query::create()->select('c.*')->from('Categoria c')->whereNotIn('c.slug', array('prensa', 'about-me', 'home'))->execute(array(), Doctrine::HYDRATE_ARRAY);
$html = '';
foreach ($categorias as $categoria) {
    $html .= '<li><a href="categorias/'.$categoria['slug'].'">'.$categoria['value'].'</a></li>';
}
echo($html);
?>